@import 'src/assets/scss/common';
.image-space {
  .search-bar {
    margin-bottom: 10px;
    .el-autocomplete {
      width: 100%;
    }
  }
  .image-categories-wrap {
    height: 400px;
    overflow: auto;
    border: 1px solid #d1dbe5;
    &::-webkit-scrollbar{
        width: 8px;
        height: 8px;
        background: #f2f2f2;
        padding-right: 2px;
    }
    &::-webkit-scrollbar-thumb {
        background: #b4bbc5;
        border-radius: 10px;
        border: 0;
    }
    .el-tree {
      border: 0;
    }
    .el-tree-node > .el-tree-node__children{
      overflow: initial;
    }
    .el-tree--highlight-current
      .el-tree-node.is-current
      > .el-tree-node__content {
      color: $primary;
      background-color: #fff;
    }
  }
  .img-list-wrap {
    height: 450px;
    overflow: auto;
    &::-webkit-scrollbar{
      width: 8px;
      height: 8px;
      background: #f2f2f2;
      padding-right: 2px;
    }
    &::-webkit-scrollbar-thumb {
        background: #b4bbc5;
        border-radius: 10px;
        border: 0;
    }
  }
  .img-list {
    li {
      display: inline-block;
      vertical-align: top;
      margin-right: 10px;
      margin-bottom: 10px;
      .img-wrap {
        position: relative;
        box-sizing: border-box;
        width: 100px;
        height: 100px;
        border: 2px solid #fff;
        background-color: $darkWhite;
        cursor: pointer;
        .el-checkbox__input {
          position: absolute;
          top: 6px;
          left: 6px;
          opacity: 0;
        }
        &:hover {
          border: 2px solid $primary;
          background-color: #f1f7fe;
          .el-checkbox__input {
            opacity: 1;
          }
        }
        &.active {
          border: 2px solid $primary;
          background-color: #f1f7fe;
          .el-checkbox__input {
            opacity: 1;
          }
        }
      }
      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
  }
  .selected-bar {
    box-sizing: border-box;
    width: 910px;
    margin-top: 10px;
    padding: 10px;
    white-space: nowrap;
    background-color: #f5f5f5;
    overflow: auto;
    li {
      display: inline-block;
      vertical-align: top;
      position: relative;
      margin-right: 10px;
      &:hover {
        .delete-btn {
          opacity: 1;
        }
      }
    }
    .selected-img {
      width: 60px;
      height: 60px;
      background-color: $darkWhite;
      img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
  }
  .delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    cursor: pointer;
    &::after {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      border-top: 12px solid #3a3a3a;
      border-right: 12px solid #3a3a3a;
      border-bottom: 12px solid transparent;
      border-left: 12px solid transparent;
    }
    .icon-close {
      position: absolute;
      width: 14px;
      height: 14px;
      top: 0;
      right: 0;
      line-height: 14px;
      text-align: center;
      color: #fff;
      font-size: 14px;
      z-index: 2;
    }
  }
  .confirm-bar{
    overflow: hidden;
    margin-top: 10px;
    .selection-mount{
      line-height: 40px;
      float: left;
    }
    .confirm-btn{
      float: right;
    }
  }
  .loading-text{
    text-align: center;
    color: $secondary;
    padding: 10px;
  }
  .storage-tips{
    color: $danger;
    font-size: 12px;
    margin-top: 10px;
  }
}
